<?php
$this->title = "Vincular evento";
$this->headTitle($this->title);
?>
<script type="text/javascript">

    function lookup(inputString) {
            $( "#inputString").focus();
            $.post("<?php echo $this->url(array('action'=>'ajax-orfaos'));?>", {queryString: inputString}, function(data){
                $('#autoSuggestionsList').html(data);
            });
    }
</script>

<div>
<form>
    <div>
        Filtrar por título do evento:
        <br />
        <input style='width:600px;' type="text" size="60" value="" id="inputString" onkeyup="lookup(this.value);" />
    </div>
</form>
</div>                
<p>&nbsp;&nbsp;Título do evento: </p>
<form  method="POST">
<div id="autoSuggestionsList">
    <script>lookup("");</script>
</div>
    <input id="submit" type="submit" value="Vincular evento"></input>
</form>
<br/><a class="linkBtn" href="<?php echo $this->referrer();?>">Voltar</a>

